import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const sqlQueryResultView = await client.axons.sql.query('id', { sql: 'sql' });
console.log(sqlQueryResultView.columns);{
"columns": [
{
"name": "<string>",
"type": "<string>"
}
],
"rows": [
{}
],
"meta": {
"duration_ms": 123,
"changes": 123,
"rows_read_limit_reached": true
}
}[Beta] Execute a single parameterized SQL statement against an axon’s SQLite database.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const sqlQueryResultView = await client.axons.sql.query('id', { sql: 'sql' });
console.log(sqlQueryResultView.columns);{
"columns": [
{
"name": "<string>",
"type": "<string>"
}
],
"rows": [
{}
],
"meta": {
"duration_ms": 123,
"changes": 123,
"rows_read_limit_reached": true
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The axon identifier.
Was this page helpful?